<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="box"></div>
    <button id="btn">longmao</button>

    <script>
      var btnEle = document.getElementById('btn');
      btnEle.onclick = function(){
        var imgEle = new Image(100, 100);
      imgEle.src = '../img/longmao.webp';
      document.getElementById('box').appendChild(imgEle);
      }
    
    </script>
  </body>
</html>
